<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		<input type="checkbox" name="" id="checked" value="checked" />选中
		<input type="checkbox" name="" id="unchecked" value="unchecked" />未选中
		<input type="checkbox" name="" id="inderterminate" value="inderterminate" />不确定状态
		<script type="text/javascript">
			document.getElementById("checked").checked=true;
			document.getElementById("unchecked").checked=false;
			document.getElementById("inderterminate").indeterminate=true;
		</script>
	</body>
</html>
